package com.yonyou.brigade.util.resultutil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;

/**
 * Created by Administrator on 2018/9/11.
 */
@RestController
@RequestMapping("/testU")
public class TestUrlController {
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");


    @Value("${ordercenter.url.projecturl}")
    private String url;

    @RequestMapping("testUrl")
    public void testUrl(){
        try {
            String url1 = url;
            String param = "{\n" +
                    "    \"reftype\": \"ywytbm\",\n" +
                    "\t\"query\": \"\",\n" +
                    "\t\"openTypePk\": \"hht_sq_1\"\n" +
                    "}";
           // String result = HttpSendUtils.sendPost(url,param);
           // System.out.println(result);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}